package edu.ksu.cis.android.project31;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * @author Android Development
 * @link http://developer.android.com/guide/topics/data/data-storage.html
 */
public class DictionaryOpenHelper extends SQLiteOpenHelper {

    public static final String DATABASE_NAME = "accelerometer";
    public static final String KEY_TIME = "time";
    public static final String KEY_PLAYER = "playerName";
    
	private static final int DATABASE_VERSION = 2;
	public static final String DICTIONARY_TABLE_NAME = "dictionary";
    private static final String DICTIONARY_TABLE_CREATE =
                "CREATE TABLE " + DICTIONARY_TABLE_NAME + " (" +
                KEY_TIME + " INTEGER, " +
                KEY_PLAYER + " TEXT);";

    DictionaryOpenHelper(Context context) {
        super(context, DATABASE_NAME, null, DATABASE_VERSION);
    }
    
    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(DICTIONARY_TABLE_CREATE);
    }

	@Override
	public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
		
	}
}